package com.spring;

import lombok.extern.java.Log;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
@Log
public class ApplicationRunnerBean implements ApplicationRunner {

	@Override
	public void run(ApplicationArguments args) {
		System.out.println("===getOptionNames========" + args.getOptionNames());
		System.out.println("===getOptionValues=======" + args.getOptionValues("foo"));
		System.out.println("===getOptionValues=======" + args.getOptionValues("developer.name"));
	}
}
